<script setup>
const props = defineProps(["modelValue"]);
const emit = defineEmits(["update:modelValue"]);
const a = defineModel();
</script>

<template>
  <div>
    子组件
    <input
      type="text"
      :value="modelValue"
      @input="emit('update:modelValue', $event.target.value)"
    />
    <input type="text" v-model="a" />
  </div>
</template>

<style scoped></style>
